package com.jz.jingying.mapper.sqlServer;

import com.jz.jingying.bean.TRaterecord;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jz.jingying.bean.TZwtable;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyl
 * @since 2019-03-21
 */
public interface TRaterecordMapper extends BaseMapper<TRaterecord> {
    @Select("SELECT COUNT(*) FROM T_RateRecord where CollectionDate >='2016-01-01 00:00:00' ")
    int selectTRaterecordCounts();

    List<TRaterecord> selectTRaterecord(@Param("pageSize") int pageSize, @Param("currentPage") int currentPage);

    List<TRaterecord> getRateRecord(TRaterecord RateRecord);
    void  addRateRecord(TRaterecord RateRecord);
    void  updateRateRecord(TRaterecord RateRecord);
    List<TRaterecord> selectByCondition(@Param("condition") String condition);
}
